import { mongo } from "../mogoConfig";



const db = mongo.db("my_test")

const cursor = db.collection("inventory")
    .find({ "size.uom": "in" }
    );

const run = async () => {
    for await (const item of cursor) {
        console.log(JSON.stringify(item))
    }
}

run()
    .finally(() => {
        mongo.close()
    })



console.log("执行结束")